-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update/dmsg serve #165
Update/dmsg serve #165
Conversation
Binary uploaded. |
pkg/snet/snettest/env.go
Outdated
@@ -137,7 +137,7 @@ func createDmsgSrv(t *testing.T, dc disc.APIClient) (srv *dmsg.Server, srvErr <- | |||
srv = dmsg.NewServer(pk, sk, dc) | |||
errCh := make(chan error, 1) | |||
go func() { | |||
errCh <- srv.Serve(l, "") | |||
errCh <- srv.Serve(l, "", 10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the signature of srv.Serve
already changed somewhere? What do you think of extracting 10
to a constant with a describing name? I think it might improve the code readability if one can see what 10
means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be resolved though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Did you run
make format && make check
? yesFixes #
Changes:
How to test this PR: